<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <include file="./Public/Admin/header.html" />
    <style>
        .form-horizontal .control-group {
            margin-bottom: 10px;
        }

        .input-medium {
            width: 330px;
        }

        #keyword {
            width: 300px;
        }
    </style>
</head>
<body>
<div id="main">
    <div class="container-fluid">

        <div class="row-fluid">
            <div class="span12">
                <div class="box">
                    <div class="box-title">
                        <div class="span4">
                            <h3><i class="icon-edit"></i>积分收支记录</h3>
                        </div>
                        <!-- <div class="btn-group pull-right clearfix ">
                             <form action="#" method="get" class="form-horizontal" style="margin: 0px;">
                                <input type="hidden" name="aid" class="required" value="<?php echo $aid?>"/>
                                <input type="text" id="keyword" name="keyword" value="<?php echo isset($keyword)?$keyword:'' ?>" class="input-small-z" placeholder="请输入关键词" />

                                <button class="btn" id="btn_search">查询</button>
                            </form>
                        </div> -->
                    </div>

                    <div class="box-content">

                        <div class="row-fluid">
                            <div class="span10 control-group">
                                <div class="span2">
                                    <a class="btn" href="javascript:location.reload()"><i class="icon-refresh"></i>刷新</a>
                                </div>
                                <div class="span8 pull-right clearfix ">

                                </div>
                            </div>
                        </div>
                        <div class="row-fluid dataTables_wrapper">
                            <table id="listTable" class="table table-bordered table-hover  dataTable">
                                <thead>
                                <tr>
                                    <th class='with-checkbox'>
                                        <input type="checkbox" class="check_all" /></th>
                                    <th>姓名</th>
                                    <th>电话</th>
                                    <th>积分情况</th>
                                    <th>时间</th>
                                </tr>
                                </thead>
                                <tbody>

                                <foreach name="list" item="v">
                                    <tr>
                                        <td class="with-checkbox">
                                            <input type="checkbox" name="check" value="{$v.id}">
                                        </td>
                                        <td style="text-align:left;"><?php echo $v['uname']?></td>
                                        <td style="text-align:left;"><?php echo $v['phone']?></td>
                                        <td style="text-align:left;"><?php echo $v['integral']?></td>
                                        <td style="text-align:left;">{$v.cashtime|date='Y-m-d H:i:s',###}</td>
                                    </tr>
                                </foreach>
                                <if condition="($count eq 0) ">
                                    <tr><td align="center" colspan="11">暂无记录</td></tr>
                                </if>
                                </tbody>
                            </table>
                            <div class="row-fluid">
                                <div class="span4">
                                    <div class="dataTables_info">
                                        <if condition="($count gt 0) ">
                                            共{$count}条记录，当前第{$nowPage}/{$totalPages}页
                                        </if>
                                    </div>
                                </div>
                                <div class="span8">
                                    {$page}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
</body>
</html>